﻿public static class UpgradesEventsHandler
{
    public static Events.OnUpgradedCallback OnUpgraded;

    public static class Events
    {
        public delegate void OnUpgradedCallback(UpgradeType upgradeType, BaseUpgrade upgrade);

        public static void OnUpgraded(UpgradeType upgradeType, BaseUpgrade upgrade)
        {
            UpgradesEventsHandler.OnUpgraded?.Invoke(upgradeType, upgrade);
        }
    }
}